package org.test.mail;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 发送邮件测试
 *
 * @author wanglei
 * @date 2021/10/25
 * */
@RestController
@RequestMapping("mail")
public class MailController {

    @Resource
    private MailService mailService;

    @GetMapping("simpleMail")
    public String sendMail(){
        mailService.sendSimpleMail("1009828970@qq.com", "test", "test");
        return "success";
    }
}
